<% load :tabs %>

<span class="mediumbold">Welcome to <a href="<%=link%>"><%=@note.title%></a></span> - 

<%=@note.description%>
<br>
Moderator is <a href="/<%=@note.get_sponsor.login%>"><%=@note.get_sponsor.login%></a>
<br>

<script>var evenodd = true;</script>
<% if @user && !@note.is_a_member?(@user) %>
<a href="<%=link "join"%>?uid=<%=@session[:username]%>"  class="button">join <%=@note.title%></a>
<% end %>
<% if @user && @note.is_a_member?(@user) %>
<a href="<%=link "leave"%>/?uid=<%=@session[:username]%>"  class="button">leave <%=@note.title%></a>
<% end %>

<hr>
<span class="mediumbold">Members</span>
<div class="general-table">
<table style="min-width:50%">
<% zebra_table(@users , "Portrait|Member|Description|Details", "depiction|login|description|details") %>
</table>
</div>
